half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
inc(0) → 0
inc(s(x)) → s(inc(x))
zero(0) → true
zero(s(x)) → false
p(0) → 0
p(s(x)) → x
bits(x) → bitIter(x, 0)
bitIter(x, y) → if(zero(x), x, inc(y))
if(true, x, y) → p(y)
if(false, x, y) → bitIter(half(x), y)
↳ QTRS
↳ Overlay + Local Confluence
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
inc(0) → 0
inc(s(x)) → s(inc(x))
zero(0) → true
zero(s(x)) → false
p(0) → 0
p(s(x)) → x
bits(x) → bitIter(x, 0)
bitIter(x, y) → if(zero(x), x, inc(y))
if(true, x, y) → p(y)
if(false, x, y) → bitIter(half(x), y)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
inc(0) → 0
inc(s(x)) → s(inc(x))
zero(0) → true
zero(s(x)) → false
p(0) → 0
p(s(x)) → x
bits(x) → bitIter(x, 0)
bitIter(x, y) → if(zero(x), x, inc(y))
if(true, x, y) → p(y)
if(false, x, y) → bitIter(half(x), y)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
IF(false, x, y) → HALF(x)
BITITER(x, y) → INC(y)
IF(false, x, y) → BITITER(half(x), y)
IF(true, x, y) → P(y)
HALF(s(s(x))) → HALF(x)
BITITER(x, y) → IF(zero(x), x, inc(y))
INC(s(x)) → INC(x)
BITITER(x, y) → ZERO(x)
BITS(x) → BITITER(x, 0)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
inc(0) → 0
inc(s(x)) → s(inc(x))
zero(0) → true
zero(s(x)) → false
p(0) → 0
p(s(x)) → x
bits(x) → bitIter(x, 0)
bitIter(x, y) → if(zero(x), x, inc(y))
if(true, x, y) → p(y)
if(false, x, y) → bitIter(half(x), y)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
IF(false, x, y) → HALF(x)
BITITER(x, y) → INC(y)
IF(false, x, y) → BITITER(half(x), y)
IF(true, x, y) → P(y)
HALF(s(s(x))) → HALF(x)
BITITER(x, y) → IF(zero(x), x, inc(y))
INC(s(x)) → INC(x)
BITITER(x, y) → ZERO(x)
BITS(x) → BITITER(x, 0)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
inc(0) → 0
inc(s(x)) → s(inc(x))
zero(0) → true
zero(s(x)) → false
p(0) → 0
p(s(x)) → x
bits(x) → bitIter(x, 0)
bitIter(x, y) → if(zero(x), x, inc(y))
if(true, x, y) → p(y)
if(false, x, y) → bitIter(half(x), y)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
INC(s(x)) → INC(x)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
inc(0) → 0
inc(s(x)) → s(inc(x))
zero(0) → true
zero(s(x)) → false
p(0) → 0
p(s(x)) → x
bits(x) → bitIter(x, 0)
bitIter(x, y) → if(zero(x), x, inc(y))
if(true, x, y) → p(y)
if(false, x, y) → bitIter(half(x), y)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
INC(s(x)) → INC(x)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
INC(s(x)) → INC(x)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
HALF(s(s(x))) → HALF(x)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
inc(0) → 0
inc(s(x)) → s(inc(x))
zero(0) → true
zero(s(x)) → false
p(0) → 0
p(s(x)) → x
bits(x) → bitIter(x, 0)
bitIter(x, y) → if(zero(x), x, inc(y))
if(true, x, y) → p(y)
if(false, x, y) → bitIter(half(x), y)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
HALF(s(s(x))) → HALF(x)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
HALF(s(s(x))) → HALF(x)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
IF(false, x, y) → BITITER(half(x), y)
BITITER(x, y) → IF(zero(x), x, inc(y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
inc(0) → 0
inc(s(x)) → s(inc(x))
zero(0) → true
zero(s(x)) → false
p(0) → 0
p(s(x)) → x
bits(x) → bitIter(x, 0)
bitIter(x, y) → if(zero(x), x, inc(y))
if(true, x, y) → p(y)
if(false, x, y) → bitIter(half(x), y)
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
IF(false, x, y) → BITITER(half(x), y)
BITITER(x, y) → IF(zero(x), x, inc(y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
zero(0) → true
zero(s(x)) → false
inc(0) → 0
inc(s(x)) → s(inc(x))
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
p(0)
p(s(x0))
bits(x0)
bitIter(x0, x1)
if(true, x0, x1)
if(false, x0, x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
IF(false, x, y) → BITITER(half(x), y)
BITITER(x, y) → IF(zero(x), x, inc(y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
zero(0) → true
zero(s(x)) → false
inc(0) → 0
inc(s(x)) → s(inc(x))
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
BITITER(s(x0), y1) → IF(false, s(x0), inc(y1))
BITITER(0, y1) → IF(true, 0, inc(y1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
IF(false, x, y) → BITITER(half(x), y)
BITITER(0, y1) → IF(true, 0, inc(y1))
BITITER(s(x0), y1) → IF(false, s(x0), inc(y1))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
zero(0) → true
zero(s(x)) → false
inc(0) → 0
inc(s(x)) → s(inc(x))
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
IF(false, x, y) → BITITER(half(x), y)
BITITER(s(x0), y1) → IF(false, s(x0), inc(y1))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
zero(0) → true
zero(s(x)) → false
inc(0) → 0
inc(s(x)) → s(inc(x))
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
IF(false, x, y) → BITITER(half(x), y)
BITITER(s(x0), y1) → IF(false, s(x0), inc(y1))
inc(0) → 0
inc(s(x)) → s(inc(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
zero(0)
zero(s(x0))
zero(0)
zero(s(x0))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ RuleRemovalProof
IF(false, x, y) → BITITER(half(x), y)
BITITER(s(x0), y1) → IF(false, s(x0), inc(y1))
inc(0) → 0
inc(s(x)) → s(inc(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
half(s(0)) → 0
POL(0) = 1
POL(BITITER(x1, x2)) = x1 + x2
POL(IF(x1, x2, x3)) = x1 + x2 + x3
POL(false) = 0
POL(half(x1)) = x1
POL(inc(x1)) = x1
POL(s(x1)) = 2·x1
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
IF(false, x, y) → BITITER(half(x), y)
BITITER(s(x0), y1) → IF(false, s(x0), inc(y1))
inc(0) → 0
inc(s(x)) → s(inc(x))
half(0) → 0
half(s(s(x))) → s(half(x))
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))
half(s(s(x))) → s(half(x))
POL(0) = 0
POL(BITITER(x1, x2)) = x1 + 2·x2
POL(IF(x1, x2, x3)) = 2·x1 + x2 + 2·x3
POL(false) = 0
POL(half(x1)) = x1
POL(inc(x1)) = x1
POL(s(x1)) = 2 + x1
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
IF(false, x, y) → BITITER(half(x), y)
BITITER(s(x0), y1) → IF(false, s(x0), inc(y1))
inc(0) → 0
inc(s(x)) → s(inc(x))
half(0) → 0
half(0)
half(s(0))
half(s(s(x0)))
inc(0)
inc(s(x0))